package com.ef.service.impl;

import java.util.List;

import com.ef.dao.PayDao;
import com.ef.domain.Contract;
import com.ef.domain.PayHistory;
import com.ef.service.PayService;

public class PayServiceImpl extends BaseServiceImpl implements PayService {

	private PayDao payDao;

	public PayDao getPayDao() {
		return payDao;
	}

	public void setPayDao(PayDao payDao) {
		this.payDao = payDao;
	}
	
	public List<PayHistory> findByContract(Contract contract){
		return payDao.findByContract(contract);
	}
	
	public void saveOrUpdate(PayHistory entity){
		payDao.saveOrUpdate(entity);
	}
	
}
